import request from "../../util/serve"
//商品列表
export let comment = (current, size) => {
    return request({
        url: 'comment/getAll',
        method: 'GET',
        params: {
            current, size
        }
    })
}
//添加
export let update = (coid, comttime,talks,uname) => {
    return request({
        url: 'comment/update',
        method: 'POST',
        data: {
            coid, comttime,talks,uname
        }
    })
}
//查询

export let blursearch= (current, key,size) => {
    return request({
        url: 'comment/blursearch',
        method: 'GET',
        params: {
            current, key,size
        }
    })
}
//删除
export let deleteid= (id) => {
    return request({
        url: 'comment/delete',
        method: 'DELETE',
        params: {
            id
        }
    })
}